import request from "../utils/request";

// 专业列表
export const specialityList = data => {
    return request({
        method: 'POST',
        url:'/major/getMajorPage',
        data
    })
}
//查看专业-不分页分页
export const specialityPage = () => {
    return request({
        method: 'GET',
        url:'/major/getMajorList'
    })
}
//新增专业
export const addSpeciality = data => {
    return request({
        method: 'POST',
        url:'/major/add',
        data
    })
}
//编辑专业
export const editSpeciality = data => {
    return request({
        method: 'POST',
        url:'/major/edit',
        data
    })
}
//删除专业
export const delSpeciality = id => {
    return request({
        method: 'GET',
        url:'/major/deleteById?id=' + id
    })
}
